package com.liezh.state;

/**
 * @author liezh
 * @date 2021-10-29
 */
public class ReceivedState implements PackageState {
    //Singleton
    private static ReceivedState instance = new ReceivedState();
    private ReceivedState() {}
    public static ReceivedState instance() {
        return instance;
    }
    //Business logic and state transition
    @Override
    public void updateState(PackageContext ctx) {
        System.out.println("6 - Package is received !!");
        System.out.println("=== state end ");
    }
}
